<!-- { % extends "index.html" %} -->
{% block content %}
	{% if object_list %}
		{% for new in object_list %}
			<h3><a href="/news/update/{{ new.id }}">{{ new.title }}</a></h3>
			<p>{{ new.text }}... <span style="color:gray;">{{ new.date|date:"d.m.Y" }}</span>
                            <a href="/news/edit/{{ new.id }}">edit this news</a>.
                        </p>
		{% endfor %}
		
		{% if has_previous %}
			<div style="text-align:center;"><a href="/news/page/{{ previous }}"><b>Nowsze Wiadomości</b></a></div>
		{% endif %}
		{% if has_next %}
			<div style="text-align:center;"><a href="/news/page/{{ next }}"><b>Starsze Wiadomości</b></a></div>
		{% endif %}
	{% else %}
		Brak wiadomości
	{% endif %}
{% endblock %}
